﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:Controls="clr-namespace:PSE.Framework.UI.Controls.SmartClient;assembly=PSE.Framework.UI.Controls">

    <!--BEGIN LOADINGPANEL-->
    <Style TargetType="{x:Type Controls:LoadingPanel}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Controls:LoadingPanel}">
                    <Grid Height="{TemplateBinding Height}" Width="{TemplateBinding Width}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
                        <Border CornerRadius="12" Background="{DynamicResource BrushLoadingPanelBackground}"/>
                        <Grid HorizontalAlignment="Center" VerticalAlignment="Center">
                            <Path x:Name="contorno_branco" Width="218" Height="46.416" Stretch="Fill" Fill="{DynamicResource BrushLoadingPanelBorderLight}" Data="F1 M 389.665,226.916L 591.666,226.916C 596.084,226.916 599.666,230.498 599.666,234.916L 599.666,265.332C 599.666,269.751 596.084,273.332 591.666,273.332L 389.665,273.332C 385.247,273.332 381.665,269.751 381.665,265.332L 381.665,234.916C 381.665,230.498 385.247,226.916 389.665,226.916 Z M 392.666,229.332C 388.247,229.332 384.666,232.914 384.666,237.332L 384.666,262.666C 384.666,267.084 388.247,270.666 392.666,270.666L 589.332,270.666C 593.751,270.666 597.332,267.084 597.332,262.666L 597.332,237.332C 597.332,232.914 593.751,229.332 589.332,229.332L 392.666,229.332 Z " HorizontalAlignment="Right" VerticalAlignment="Bottom"/>
                            <Path x:Name="contorno_excuro" Width="213.667" Height="42.333" Stretch="Fill" StrokeLineJoin="Round" Stroke="{DynamicResource BrushLoadingPanelBorderDark}" Data="F1 M 392.671,229.312L 589.337,229.312C 593.756,229.312 597.337,232.893 597.337,237.312L 597.337,262.645C 597.337,267.063 593.756,270.645 589.337,270.645L 392.671,270.645C 388.252,270.645 384.671,267.063 384.671,262.645L 384.671,237.312C 384.671,232.893 388.252,229.312 392.671,229.312 Z " HorizontalAlignment="Right" Margin="0,0,1.827,2.187" VerticalAlignment="Bottom"/>
                            <Path x:Name="box" Width="213.667" Height="42.333" Stretch="Fill" StrokeLineJoin="Round" Stroke="{DynamicResource BrushLoadingPanelBorderDark}" Data="F1 M 392.671,229.312L 589.337,229.312C 593.756,229.312 597.337,232.893 597.337,237.312L 597.337,262.645C 597.337,267.063 593.756,270.645 589.337,270.645L 392.671,270.645C 388.253,270.645 384.671,267.063 384.671,262.645L 384.671,237.312C 384.671,232.893 388.253,229.312 392.671,229.312 Z " HorizontalAlignment="Right" Margin="0,0,1.827,2.187" VerticalAlignment="Bottom" Fill="{DynamicResource BrushLoadingPanelCenterBackground}"/>
                            <Grid >
                                <!--<Grid Width="29.537" Height="27.398" Margin="20,2,0,0">
                                    <Ellipse RenderTransformOrigin="0.5,0.5" x:Name="ellipse1" Height="5.856" Fill="{DynamicResource BrushLoadPanelEllipse1Background}" Margin="11.883,0,11.5,0" VerticalAlignment="Bottom">
                                        <Ellipse.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Ellipse.RenderTransform>
                                    </Ellipse>
                                    <Ellipse RenderTransformOrigin="0.5,0.5" x:Name="ellipse2" Width="6.154" Height="5.856" Fill="{DynamicResource BrushLoadPanelEllipse2Background}" HorizontalAlignment="Right" Margin="0,0,2.793,2.769" VerticalAlignment="Bottom">
                                        <Ellipse.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Ellipse.RenderTransform>
                                    </Ellipse>
                                    <Ellipse RenderTransformOrigin="0.5,0.5" x:Name="ellipse3" Width="6.153" Fill="{DynamicResource BrushLoadPanelEllipse3Background}" HorizontalAlignment="Right" Margin="0,11.09,0,10.453">
                                        <Ellipse.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Ellipse.RenderTransform>
                                    </Ellipse>
                                    <Ellipse Height="5.851" RenderTransformOrigin="0.5,0.5" x:Name="ellipse4" Width="6.154" Fill="{DynamicResource BrushLoadPanelEllipse4Background}" HorizontalAlignment="Right" Margin="0,3.731,2.793,0" VerticalAlignment="Top">
                                        <Ellipse.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Ellipse.RenderTransform>
                                    </Ellipse>
                                    <Ellipse Height="5.853" RenderTransformOrigin="0.5,0.5" x:Name="ellipse5" Fill="{DynamicResource BrushLoadPanelEllipse5Background}" Margin="11.883,0,11.5,0" VerticalAlignment="Top">
                                        <Ellipse.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Ellipse.RenderTransform>
                                    </Ellipse>
                                    <Ellipse Height="5.851" RenderTransformOrigin="0.5,0.5" x:Name="ellipse6" Width="6.151" Fill="{DynamicResource BrushLoadPanelEllipse6Background}" HorizontalAlignment="Left" Margin="3.894,3.731,0,0" VerticalAlignment="Top">
                                        <Ellipse.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Ellipse.RenderTransform>
                                    </Ellipse>
                                    <Ellipse RenderTransformOrigin="0.5,0.5" x:Name="ellipse7" Width="6.153" Fill="{DynamicResource BrushLoadPanelEllipse7Background}" HorizontalAlignment="Left" Margin="0,11.09,0,10.453">
                                        <Ellipse.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Ellipse.RenderTransform>
                                    </Ellipse>
                                    <Ellipse RenderTransformOrigin="0.5,0.5" x:Name="ellipse" Width="6.151" Height="5.856" Fill="{DynamicResource BrushLoadPanelEllipse8Background}" HorizontalAlignment="Left" Margin="3.894,0,0,2.769" VerticalAlignment="Bottom">
                                        <Ellipse.RenderTransform>
                                            <TransformGroup>
                                                <ScaleTransform ScaleX="1" ScaleY="1"/>
                                                <SkewTransform AngleX="0" AngleY="0"/>
                                                <RotateTransform Angle="0"/>
                                                <TranslateTransform X="0" Y="0"/>
                                            </TransformGroup>
                                        </Ellipse.RenderTransform>
                                    </Ellipse>
                                </Grid>
                                <TextBlock Margin="10,16,0,0" x:Name="texto_aguarde" TextAlignment="Left" Width="Auto" Height="Auto" HorizontalAlignment="Left" VerticalAlignment="Top" FontWeight="Bold" Foreground="{DynamicResource BrushLoadingPanelForeground}" Text="{DynamicResource Infra.Controls.Message.AguardeCarregando}" Style="{DynamicResource ControlFont}"/>-->
                                <Label Padding="0" x:Name="texto_aguarde" HorizontalContentAlignment="Center" Width="Auto" Height="Auto" HorizontalAlignment="Center" VerticalAlignment="Center" FontWeight="Bold" Foreground="{DynamicResource BrushLoadingPanelForeground}" Content="{DynamicResource Infra.Controls.Message.AguardeCarregando}" Style="{DynamicResource ControlFont}"/>
                            </Grid>
                        </Grid>
                    </Grid>
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="AnimationLoadingPanel" RepeatBehavior="Forever">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.167"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse2" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.167"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse3" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.167"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse4" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.167"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse5" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.167"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse6" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.167"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse7" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.167"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.7000000" Value="0.167"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse6" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource LoadingPanel6}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="{DynamicResource LoadingPanel5}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="{DynamicResource LoadingPanel3}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="{DynamicResource LoadingPanel1}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="{DynamicResource LoadingPanel7}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="{DynamicResource LoadingPanel4}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="{DynamicResource LoadingPanel2}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="{DynamicResource LoadingPanel8}"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse5" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource LoadingPanel8}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="{DynamicResource LoadingPanel6}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="{DynamicResource LoadingPanel5}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="{DynamicResource LoadingPanel3}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="{DynamicResource LoadingPanel1}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="{DynamicResource LoadingPanel7}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="{DynamicResource LoadingPanel4}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="{DynamicResource LoadingPanel2}"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse4" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource LoadingPanel2}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="{DynamicResource LoadingPanel8}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="{DynamicResource LoadingPanel6}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="{DynamicResource LoadingPanel5}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="{DynamicResource LoadingPanel3}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="{DynamicResource LoadingPanel1}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="{DynamicResource LoadingPanel7}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="{DynamicResource LoadingPanel4}"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse3" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource LoadingPanel4}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="{DynamicResource LoadingPanel2}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="{DynamicResource LoadingPanel8}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="{DynamicResource LoadingPanel6}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="{DynamicResource LoadingPanel5}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="{DynamicResource LoadingPanel3}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="{DynamicResource LoadingPanel1}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="{DynamicResource LoadingPanel7}"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse2" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource LoadingPanel7}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="{DynamicResource LoadingPanel4}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="{DynamicResource LoadingPanel2}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="{DynamicResource LoadingPanel8}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="{DynamicResource LoadingPanel6}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="{DynamicResource LoadingPanel5}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="{DynamicResource LoadingPanel3}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="{DynamicResource LoadingPanel1}"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse1" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource LoadingPanel1}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="{DynamicResource LoadingPanel7}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="{DynamicResource LoadingPanel4}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="{DynamicResource LoadingPanel2}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="{DynamicResource LoadingPanel8}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="{DynamicResource LoadingPanel6}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="{DynamicResource LoadingPanel5}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="{DynamicResource LoadingPanel3}"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource LoadingPanel3}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="{DynamicResource LoadingPanel1}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="{DynamicResource LoadingPanel7}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="{DynamicResource LoadingPanel4}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="{DynamicResource LoadingPanel2}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="{DynamicResource LoadingPanel8}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="{DynamicResource LoadingPanel6}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="{DynamicResource LoadingPanel5}"/>
                            </ColorAnimationUsingKeyFrames>
                            <ColorAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="ellipse7" Storyboard.TargetProperty="(Shape.Fill).(SolidColorBrush.Color)">
                                <SplineColorKeyFrame KeyTime="00:00:00" Value="{DynamicResource LoadingPanel5}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.1000000" Value="{DynamicResource LoadingPanel3}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.2000000" Value="{DynamicResource LoadingPanel1}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.3000000" Value="{DynamicResource LoadingPanel7}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.4000000" Value="{DynamicResource LoadingPanel4}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.5000000" Value="{DynamicResource LoadingPanel2}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.6000000" Value="{DynamicResource LoadingPanel8}"/>
                                <SplineColorKeyFrame KeyTime="00:00:00.7000000" Value="{DynamicResource LoadingPanel6}"/>
                            </ColorAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                    <ControlTemplate.Triggers>
                        <!--<EventTrigger RoutedEvent="FrameworkElement.Loaded">
                            <BeginStoryboard Storyboard="{StaticResource AnimationLoadingPanel}"/>
                        </EventTrigger>-->
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
    <!--END LOADINGPANEL-->
</ResourceDictionary>